package com.sanyu.controller.repairman;

import com.sanyu.pojo.dto.RepairTypeDTO;
import com.sanyu.pojo.dto.RepairTypePageQueryDTO;
import com.sanyu.pojo.vo.RepairTypeVO;
import com.sanyu.result.PageResult;
import com.sanyu.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/repairman/district")
@Api("维修APP/维修类型相关接口")
public class RepairTypeController {

    @GetMapping("/page")
    @ApiOperation("维修类型的分页查询")
    public PageResult page(RepairTypePageQueryDTO repairTypePageQueryDTO){
        return new PageResult();
    }

    @GetMapping("/{id}")
    @ApiOperation("列出指定ID维修类型的详细信息")
    public Result<RepairTypeVO> detail(@PathVariable Long id){
        return Result.success(new RepairTypeVO());
    }
}
